from rest_framework import serializers

from xyz.models import Gathering


class GatheringsModelserializer(serializers.ModelSerializer):
    # id = serializers.IntegerField()
    # users = serializers.IntegerField()
    count = serializers.IntegerField(read_only=True)
    next = serializers.CharField(read_only=True)

    class Meta:
        model = Gathering
        fields = '__all__'